package zheng;

import com.zheng.api.TestService;
import org.apache.dubbo.config.annotation.Service;

import java.util.Random;

@Service
public class TestServiceImpl implements TestService {
    @Override
    public String testA() {
        Random random=new Random();
        int i= random.nextInt(101);
        try {
            Thread.sleep(i);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "testA";
    }

    @Override
    public String testB() {
        Random random=new Random();
        int i= random.nextInt(101);
        try {
            Thread.sleep(i);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "testB";
    }

    @Override
    public String testC() {
        Random random=new Random();
        int i= random.nextInt(101);
        try {
            Thread.sleep(i);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "testC";
    }
}
